package com.quo.service;


import com.order.hit.crossover.platform.common.bean.order.Order;
import com.order.hit.crossover.platform.common.bean.order.Quotation;
import com.order.hit.crossover.platform.common.dao.QuotationDao;

import java.util.List;

public interface QuotationService {
    List<Quotation> selectAll();

    /**
     * 查询某个订单关联的所有报价单
     */
    List<Quotation> selectByOrderId(String orderId);

    /**
     * 查询所有购买报价单，对应的是求售订单
     */
    List<Quotation> selectForBuy();

    /**
     * 查询所有售出报价单，对应的是求购订单
     */
    List<Quotation> selectForSold();

    /**
     * 查询某个门店的所有购买报价单，对应的是求售订单
     */
    List<Quotation> selectBuyOfStore(String storeId);

    /**
     * 查询某个门店的所有售出报价单，对应的是求购订单
     */
    List<Quotation> selectSoldOfStore(String storeId);

    Quotation selectById(String quotationId);

    void add(QuotationDao quotationDao);

    void update(QuotationDao quotationDao);

    void deletebyId(String quotationId);

    void deletebyOrderId(String orderId);

    Quotation getSuccessQuo(String orderId);


    List<Quotation> selectByOrderIdAndstrategy(String id, int strategy);


    Order getOrderByquoId(String quoId);


}
